Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Prevent kicking users who aren't in the room #4999

Merged
merged 3 commits into from
Apr 4, 2019

Conversation

anoadragon453
Copy link
Member

@anoadragon453 anoadragon453 commented Apr 3, 2019

Prevent kick events from succeeding if the user is not currently in the room.

Closes #4973

Sytest PR: matrix-org/sytest#602

@anoadragon453 anoadragon453 requested a review from a team April 3, 2019 14:56
@erikjohnston
Copy link
Member

I wonder whether it'd be worth rewriting this so that we specifically said what transitions were allowed, rather than adding ad hoc rules.

@anoadragon453
Copy link
Member Author

Could do, yeah.

@anoadragon453
Copy link
Member Author

Although we're going to want custom error messages for what isn't allowed, which may end up looking quite close to the current code anyways.

@codecov
Copy link

codecov bot commented Apr 4, 2019

Codecov Report

Merging #4999 into develop will decrease coverage by <.01%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop    #4999      +/-   ##
===========================================
- Coverage     60.7%   60.69%   -0.01%     
===========================================
  Files          332      332              
  Lines        34172    34176       +4     
  Branches      5633     5635       +2     
===========================================
  Hits         20743    20743              
- Misses       11958    11960       +2     
- Partials      1471     1473       +2

@anoadragon453
Copy link
Member Author

Left a TODO.

anoadragon453 added a commit to matrix-org/sytest that referenced this pull request Apr 4, 2019
@anoadragon453 anoadragon453 merged commit db265f0 into develop Apr 4, 2019
@anoadragon453 anoadragon453 deleted the anoa/no_kick_not_in_room branch April 4, 2019 12:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants